package com.jye.rseven.user.mapper;

import com.jye.rseven.domain.PtInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PtInfoMapper {
    void addPtInfo(@Param("ptInfo") PtInfo ptInfo);

    String findPtCodeById(@Param("id") int id);

    void addOnePtNumByNumberAndPtCode(@Param("number")int number, @Param("ptCode")String ptCode);

    List<PtInfo> findPtInfoByUId(@Param("uId") Integer  uId);

    PtInfo findPtInfoById(@Param("id") Integer id);

    int findPtNumByPtCode(@Param("ptCode") String ptCode);

    List<PtInfo> findPtByUId(@Param("uId") int uid,@Param("skip") int skip,@Param("limit") int limit);

    int findUidById(@Param("id") int id);

    PtInfo findPtById(@Param("id") int id);

    List<PtInfo> findAllPt(@Param("skip") int skip, @Param("limit") int limit);

    PtInfo findTzPtInfoByPtCode(@Param("ptCode") String ptCode);

    List<PtInfo> findAllPtByGoodsId(@Param("goodsId") int goodsId,@Param("skip") int skip,@Param("limit") int limit);

    List<PtInfo> findAllByPtCode(@Param("ptCode") String ptCode,@Param("skip") int skip,@Param("limit") int limit);
}
